//
//  UIColor+extenion.swift
//  SUNweibo
//
//  Created by sighting on 16/8/21.
//  Copyright © 2016年 sighting. All rights reserved.
//

import UIKit

extension UIColor{

    class func colorWithRandom()->UIColor  {
        ///Binary operator '/' cannot be applied to two 'Double' operands
        let red = Double(arc4random_uniform(256))
        let green = Double(arc4random_uniform(256))
        let blue = Double(arc4random_uniform(256))
        
        return UIColor(red: CGFloat(red/255), green: CGFloat(green/255), blue: CGFloat(blue/255), alpha: 1.0)
    }

}
